@layout("/common/_container.html"){
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>贷款产品管理</h5>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-sm-12">
                        <div class="row">
                            <div class="col-sm-3">
                                <#NameCon id="productNo" name="产品编号" placeholder="编号"/>
                            </div>
                            <div class="col-sm-3">
                                <#NameCon id="productName" name="产品名称" placeholder="产品名称" />
                            </div>
                            <div class="col-sm-3">
                                <#SelectCon id="status" name="状态" >
                                    <option value="-1">全部</option>
                                    <option value="1">启用</option>
                                    <option value="0">禁用</option>
                                </#SelectCon>
                            </div>
                            <div class="col-sm-3">
                                <#button name="搜索" icon="fa-search" clickFun="LoanProduct.search()"/>
                                <#button name="重置" icon="fa-search" clickFun="LoanProduct.resetSearch()"/>
                            </div>

                        </div>


                        <div class="row">
                            <div class="col-sm-3">
                                <#button name="导出" icon="fa-plus" clickFun="LoanProduct.downLoadExcel()"/>
                                <#button name="手机预览" icon="fa-plus" clickFun="LoanProduct.mobileView()"/>
                            </div>
                        </div>

                        <div class="hidden-xs" id="LoanProductTableToolbar" role="group">

                            @if(shiro.hasPermission("/loanProduct/add")){
                                <#button name="添加" icon="fa-plus" clickFun="LoanProduct.openAddLoanProduct()"/>
                            @}
                            @if(shiro.hasPermission("/loanProduct/update")){
                                <#button name="修改" icon="fa-plus" clickFun="LoanProduct.openLoanProductDetail()" space="true"/>
                            @}
                            @if(shiro.hasPermission("/loanProduct/delete")){
                                <#button name="删除" icon="fa-plus" clickFun="LoanProduct.delete()" space="true"/>
                            @}
                            <#button name="明星产品" icon="fa-plus" clickFun="LoanProduct.setProductByType(99)"/>
                            <#button name="明星产品排序" icon="fa-plus" clickFun="LoanProduct.openProductStarSortDetail(1)"/>

                            <#button name="广告产品" icon="fa-plus" clickFun="LoanProduct.setProductByType(2)"/>
                        </div>
                        <#table id="LoanProductTable"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/platform/loanProduct/loanProduct.js"></script>
@}
